package com.xtourms.server.db;

// Generated 2011-4-17 16:04:01 by Hibernate Tools 3.2.4.GA

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Ticket generated by hbm2java
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "ticket", catalog = "xtourms")
public class Ticket implements java.io.Serializable {

	private Integer ticketId;
	private int ticketCity;
	private String ticketAdd;
	private String ticketDes;
	private String ticketManagerName;
	private String ticketManagerTel;
	private String ticketLinkmanName;
	private String ticketLinkmanTel;
	private String ticketLinkmanQq;
	private String ticketSymbiosis;
	private String ticketBankHolder;
	private String ticketBankAdd;
	private String ticketBankAccounts;
	private String ticketPayMode;
	private int ticketUnpaymoney;
	private int ticketUnpaydays;
	private Date ticketBeginDate;
	private Date ticketEndDate;
	private int lastmodifyWorker;
	private Date lastmodifyTime;
	private String ticketName;
	private Set<Ticketstatus> ticketstatuses = new HashSet<Ticketstatus>(0);

	public Ticket() {
	}

	public Ticket(int ticketCity, String ticketAdd, String ticketDes,
			String ticketManagerName, String ticketManagerTel,
			String ticketLinkmanName, String ticketLinkmanTel,
			String ticketLinkmanQq, String ticketSymbiosis,
			String ticketBankHolder, String ticketBankAdd,
			String ticketBankAccounts, String ticketPayMode,
			int ticketUnpaymoney, int ticketUnpaydays, Date ticketBeginDate,
			Date ticketEndDate, int lastmodifyWorker, Date lastmodifyTime,
			String ticketName) {
		this.ticketCity = ticketCity;
		this.ticketAdd = ticketAdd;
		this.ticketDes = ticketDes;
		this.ticketManagerName = ticketManagerName;
		this.ticketManagerTel = ticketManagerTel;
		this.ticketLinkmanName = ticketLinkmanName;
		this.ticketLinkmanTel = ticketLinkmanTel;
		this.ticketLinkmanQq = ticketLinkmanQq;
		this.ticketSymbiosis = ticketSymbiosis;
		this.ticketBankHolder = ticketBankHolder;
		this.ticketBankAdd = ticketBankAdd;
		this.ticketBankAccounts = ticketBankAccounts;
		this.ticketPayMode = ticketPayMode;
		this.ticketUnpaymoney = ticketUnpaymoney;
		this.ticketUnpaydays = ticketUnpaydays;
		this.ticketBeginDate = ticketBeginDate;
		this.ticketEndDate = ticketEndDate;
		this.lastmodifyWorker = lastmodifyWorker;
		this.lastmodifyTime = lastmodifyTime;
		this.ticketName = ticketName;
	}

	public Ticket(int ticketCity, String ticketAdd, String ticketDes,
			String ticketManagerName, String ticketManagerTel,
			String ticketLinkmanName, String ticketLinkmanTel,
			String ticketLinkmanQq, String ticketSymbiosis,
			String ticketBankHolder, String ticketBankAdd,
			String ticketBankAccounts, String ticketPayMode,
			int ticketUnpaymoney, int ticketUnpaydays, Date ticketBeginDate,
			Date ticketEndDate, int lastmodifyWorker, Date lastmodifyTime,
			String ticketName, Set<Ticketstatus> ticketstatuses) {
		this.ticketCity = ticketCity;
		this.ticketAdd = ticketAdd;
		this.ticketDes = ticketDes;
		this.ticketManagerName = ticketManagerName;
		this.ticketManagerTel = ticketManagerTel;
		this.ticketLinkmanName = ticketLinkmanName;
		this.ticketLinkmanTel = ticketLinkmanTel;
		this.ticketLinkmanQq = ticketLinkmanQq;
		this.ticketSymbiosis = ticketSymbiosis;
		this.ticketBankHolder = ticketBankHolder;
		this.ticketBankAdd = ticketBankAdd;
		this.ticketBankAccounts = ticketBankAccounts;
		this.ticketPayMode = ticketPayMode;
		this.ticketUnpaymoney = ticketUnpaymoney;
		this.ticketUnpaydays = ticketUnpaydays;
		this.ticketBeginDate = ticketBeginDate;
		this.ticketEndDate = ticketEndDate;
		this.lastmodifyWorker = lastmodifyWorker;
		this.lastmodifyTime = lastmodifyTime;
		this.ticketName = ticketName;
		this.ticketstatuses = ticketstatuses;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "TICKET_ID", unique = true, nullable = false)
	public Integer getTicketId() {
		return this.ticketId;
	}

	public void setTicketId(Integer ticketId) {
		this.ticketId = ticketId;
	}

	@Column(name = "TICKET_CITY", nullable = false)
	public int getTicketCity() {
		return this.ticketCity;
	}

	public void setTicketCity(int ticketCity) {
		this.ticketCity = ticketCity;
	}

	@Column(name = "TICKET_ADD", nullable = false, length = 65535)
	public String getTicketAdd() {
		return this.ticketAdd;
	}

	public void setTicketAdd(String ticketAdd) {
		this.ticketAdd = ticketAdd;
	}

	@Column(name = "TICKET_DES", nullable = false, length = 65535)
	public String getTicketDes() {
		return this.ticketDes;
	}

	public void setTicketDes(String ticketDes) {
		this.ticketDes = ticketDes;
	}

	@Column(name = "TICKET_MANAGER_NAME", nullable = false, length = 15)
	public String getTicketManagerName() {
		return this.ticketManagerName;
	}

	public void setTicketManagerName(String ticketManagerName) {
		this.ticketManagerName = ticketManagerName;
	}

	@Column(name = "TICKET_MANAGER_TEL", nullable = false, length = 20)
	public String getTicketManagerTel() {
		return this.ticketManagerTel;
	}

	public void setTicketManagerTel(String ticketManagerTel) {
		this.ticketManagerTel = ticketManagerTel;
	}

	@Column(name = "TICKET_LINKMAN_NAME", nullable = false, length = 15)
	public String getTicketLinkmanName() {
		return this.ticketLinkmanName;
	}

	public void setTicketLinkmanName(String ticketLinkmanName) {
		this.ticketLinkmanName = ticketLinkmanName;
	}

	@Column(name = "TICKET_LINKMAN_TEL", nullable = false, length = 20)
	public String getTicketLinkmanTel() {
		return this.ticketLinkmanTel;
	}

	public void setTicketLinkmanTel(String ticketLinkmanTel) {
		this.ticketLinkmanTel = ticketLinkmanTel;
	}

	@Column(name = "TICKET_LINKMAN_QQ", nullable = false, length = 20)
	public String getTicketLinkmanQq() {
		return this.ticketLinkmanQq;
	}

	public void setTicketLinkmanQq(String ticketLinkmanQq) {
		this.ticketLinkmanQq = ticketLinkmanQq;
	}

	@Column(name = "TICKET_SYMBIOSIS", nullable = false, length = 5)
	public String getTicketSymbiosis() {
		return this.ticketSymbiosis;
	}

	public void setTicketSymbiosis(String ticketSymbiosis) {
		this.ticketSymbiosis = ticketSymbiosis;
	}

	@Column(name = "TICKET_BANK_HOLDER", nullable = false, length = 15)
	public String getTicketBankHolder() {
		return this.ticketBankHolder;
	}

	public void setTicketBankHolder(String ticketBankHolder) {
		this.ticketBankHolder = ticketBankHolder;
	}

	@Column(name = "TICKET_BANK_ADD", nullable = false, length = 65535)
	public String getTicketBankAdd() {
		return this.ticketBankAdd;
	}

	public void setTicketBankAdd(String ticketBankAdd) {
		this.ticketBankAdd = ticketBankAdd;
	}

	@Column(name = "TICKET_BANK_ACCOUNTS", nullable = false, length = 20)
	public String getTicketBankAccounts() {
		return this.ticketBankAccounts;
	}

	public void setTicketBankAccounts(String ticketBankAccounts) {
		this.ticketBankAccounts = ticketBankAccounts;
	}

	@Column(name = "TICKET_PAY_MODE", nullable = false, length = 5)
	public String getTicketPayMode() {
		return this.ticketPayMode;
	}

	public void setTicketPayMode(String ticketPayMode) {
		this.ticketPayMode = ticketPayMode;
	}

	@Column(name = "TICKET_UNPAYMONEY", nullable = false)
	public int getTicketUnpaymoney() {
		return this.ticketUnpaymoney;
	}

	public void setTicketUnpaymoney(int ticketUnpaymoney) {
		this.ticketUnpaymoney = ticketUnpaymoney;
	}

	@Column(name = "TICKET_UNPAYDAYS", nullable = false)
	public int getTicketUnpaydays() {
		return this.ticketUnpaydays;
	}

	public void setTicketUnpaydays(int ticketUnpaydays) {
		this.ticketUnpaydays = ticketUnpaydays;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "TICKET_BEGIN_DATE", nullable = false, length = 10)
	public Date getTicketBeginDate() {
		return this.ticketBeginDate;
	}

	public void setTicketBeginDate(Date ticketBeginDate) {
		this.ticketBeginDate = ticketBeginDate;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "TICKET_END_DATE", nullable = false, length = 10)
	public Date getTicketEndDate() {
		return this.ticketEndDate;
	}

	public void setTicketEndDate(Date ticketEndDate) {
		this.ticketEndDate = ticketEndDate;
	}

	@Column(name = "LASTMODIFY_WORKER", nullable = false)
	public int getLastmodifyWorker() {
		return this.lastmodifyWorker;
	}

	public void setLastmodifyWorker(int lastmodifyWorker) {
		this.lastmodifyWorker = lastmodifyWorker;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LASTMODIFY_TIME", length = 19)
	public Date getLastmodifyTime() {
		return this.lastmodifyTime;
	}

	public void setLastmodifyTime(Date lastmodifyTime) {
		this.lastmodifyTime = lastmodifyTime;
	}

	@Column(name = "TICKET_NAME", nullable = false, length = 60)
	public String getTicketName() {
		return this.ticketName;
	}

	public void setTicketName(String ticketName) {
		this.ticketName = ticketName;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "ticket")
	public Set<Ticketstatus> getTicketstatuses() {
		return this.ticketstatuses;
	}

	public void setTicketstatuses(Set<Ticketstatus> ticketstatuses) {
		this.ticketstatuses = ticketstatuses;
	}

}
